package net.sf.rose.task;

import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;
import net.sf.rose.jdbc.bean.annotation.View;

/**
 * 
 * @author fengjian
 * @since 2019/07/23
 */
@Table(name = "SYS_TASK_LOG", description = "系统任务执行日志")
@View(name = "SYS_TASK_LOG_VIEW", description = "系统任务日志视图")
public class RoseTaskLogBean {

	@Column(name = "LOG_ID", pk = true, type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String logID = null;

	/** 1：系统任务；2：用户任务 */
	public static int TASK_TYPE_SYSTEM = 1;
	public static int TASK_TYPE_USER = 2;
	@Column(name = "TASK_TYPE", type = Type.数字整型, description = "任务分类")
	private int taskType = 1;

	@Column(name = "TASK_INFORMATION", type = Type.变长文本, description = "任务信息", size = 250)
	private String taskInformation = null;

	@Column(name = "TASK_ID", type = Type.定长文本, description = "任务编号", size = 32)
	private String taskID = null;

	@Column(name = "TASK_NAME", type = Type.变长文本, description = "任务名称", size = 100)
	private transient String taskName = null;

	@Column(name = "CLASS_NAME", type = Type.变长文本, description = "任务执行类", size = 250)
	private transient String className = null;

	@Column(name = "DESCRIPTION", type = Type.变长文本, description = "任务说明", size = 250)
	private transient String description = null;

	@Column(name = "START_TIME", type = Type.日期时间, description = "开始执行时间")
	private java.util.Date startTime = null;

	@Column(name = "END_TIME", type = Type.日期时间, description = "结束执行时间")
	private java.util.Date endTime = null;

	@Column(name = "RESULT", type = Type.变长文本, description = "执行结果", size = 20)
	private String result = null;

	@Column(name = "MESSAGE", type = Type.超长文本, description = "详细信息")
	private String message = null;

	public String getLogID() {
		return this.logID;
	}

	public void setLogID(String logID) {
		this.logID = logID;
	}

	public int getTaskType() {
		return this.taskType;
	}

	public void setTaskType(int taskType) {
		this.taskType = taskType;
	}

	public String getTaskInformation() {
		return this.taskInformation;
	}

	public void setTaskInformation(String taskInformation) {
		this.taskInformation = taskInformation;
	}

	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getTaskID() {
		return this.taskID;
	}

	public void setTaskID(String taskID) {
		this.taskID = taskID;
	}

	public java.util.Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(java.util.Date startTime) {
		this.startTime = startTime;
	}

	public java.util.Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(java.util.Date endTime) {
		this.endTime = endTime;
	}
}
